#include <iostream>

using std::cout;

int toint(const char ch)
{
	return(ch - '\0');
}


void print_item(const char *txt)
{
	int number = 0;
	for(int i=0;i<6;i++)
	{
		number = txt[i] - '\0'; 
		cout << number << " ";
	}

	cout << "\n";
}

int predict_compare(const char numbers[],const char game_res[])
{
	int predicted	=	0;	
	
	for(int i=0;i<6;i++)
		for(int a=0;a<6 ;a++)
			if(numbers[i] == game_res[a])
				predicted++;
	
	return(predicted);
}

char int2ch(const int x)
{
	if(x >0 && x < 38)
		return(x + '\0');
	else
		return('\0');
}
